﻿@model User
@{
    ViewData["Title"] = "注册";
}
<h2 style="text-align:center">登录管理系统</h2>
<hr />
<div>
    <form asp-controller="Account" asp-action="Register" method="post">
        <div>
            <label class="control-label">用户名</label>
            <input class="form-control" asp-for="@Model.UserName" value="" />
            <span asp-validation-for="@Model.UserName" style="color:red;"></span>
        </div>
        <div>
            <label class="control-label">密码</label>
            <input class="form-control" asp-for="@Model.Password" value="" />
            <span asp-validation-for="@Model.Password" style="color:red;"></span>
        </div>
        <div>
            <label class="control-label">邮箱</label>
            <input class="form-control" asp-for="@Model.Email" value="" />
        </div>
        <div>
            <label class="control-label">电话</label>
            <input class="form-control" asp-for="@Model.TelPhone" value="" />
        </div>
        <div class="form-group">
            <input type="submit" value="注册" class="btn btn-primary" />
            <a asp-action="Login" asp-controller="account" class="btn btn-primary">已有账号</a>
        </div>
    </form>
    <p>@ViewBag.Error</p>
</div>

@section Scripts {

}